package org.ethan.pet.service;


import org.ethan.basic.service.IBaseService;
import org.ethan.basic.util.PageList;
import org.ethan.pet.domain.Pet;
import org.ethan.pet.domain.SearchMasterMsg;
import org.ethan.pet.query.SearchMasterMsgQuery;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    /**
     * 发布寻主信息
     * @param smm
     * @param loginInfo_id
     */
    void publish(SearchMasterMsg smm, Long loginInfo_id);

    /**
     * 待处理的寻主信息
     * @param query
     * @param loginInfo_id
     * @return
     */
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Long loginInfo_id);

    /**
     * 已处理的寻主信息
     * @param query
     * @param loginInfo_id
     * @return
     */
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Long loginInfo_id);

    /**
     * 处理发布的领养信息
     * @param pet
     * @param id
     */
    void handle(Pet pet, Long id);
}
